package com.zerui.manager.app.accessauthpersonnel;

import com.zerui.cola.dto.PageResponse;
import com.zerui.cola.dto.Response;
import com.zerui.manager.app.accessauthpersonnel.executer.AccessAuthPersonnelAddCmdExe;
import com.zerui.manager.app.accessauthpersonnel.executer.AccessAuthPersonnelDelCmdExe;
import com.zerui.manager.app.accessauthpersonnel.executer.AccessAuthPersonnelPageCmdExe;
import com.zerui.manager.web.AccessAuthPersonnelService;
import com.zerui.manager.web.cmd.AccessAuthPersonnelBindCmd;
import com.zerui.manager.web.cmd.AccessAuthPersonnelQryCmd;
import com.zerui.manager.web.vo.AccessAuthPersonnelVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * @Author wh
 * @create_time 2023-08-23 11:08
 */
@Service
public class AccessAuthPersonnelServiceImpl implements AccessAuthPersonnelService {

    @Resource
    private AccessAuthPersonnelPageCmdExe accessAuthOrgPersonnelPageCmdExe;
    @Resource
    private AccessAuthPersonnelAddCmdExe accessAuthPersonnelAddCmdExe;
    @Resource
    private AccessAuthPersonnelDelCmdExe accessAuthPersonnelDelCmdExe;

    @Override
    public PageResponse<AccessAuthPersonnelVO> getPageList(AccessAuthPersonnelQryCmd accessAuthPersonnelQryCmd) {
        return accessAuthOrgPersonnelPageCmdExe.execute(accessAuthPersonnelQryCmd);
    }

    @Override
    public Response add(AccessAuthPersonnelBindCmd cmd) {
        return accessAuthPersonnelAddCmdExe.execute(cmd);
    }

    @Override
    public Response delete(AccessAuthPersonnelBindCmd cmd) {
        return accessAuthPersonnelDelCmdExe.execute(cmd);
    }
}
